<template>
    <div class="container-reset-pws">
      <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
        <el-form-item label="账号" prop="account">
          <el-input v-model="ruleForm.account" readonly></el-input>
        </el-form-item>
        <el-form-item label="重置密码" prop="password">
          <el-input v-model="ruleForm.password"></el-input>
        </el-form-item>
        <el-form-item label="确认密码" prop="confirmPassword">
          <el-input v-model="ruleForm.confirmPassword"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="submitForm('ruleForm')">重置密码</el-button>
          <el-button @click="resetForm('ruleForm')">取消重置</el-button>
        </el-form-item>
      </el-form>
    </div>
</template>

<script>
import {getUserId} from '../../libs/util'
// import {getCurrentStringTime} from '../../utils/dateUtils'
export default {
  name: 'ResetPassWord',
  data () {
    return {
      ruleForm: {
        account: '',
        password: '',
        confirmPassword: '',
        userId: getUserId()
      },
      rules: {
        password: [
          { required: true, message: '请输入重置密码', trigger: 'change' }
        ],
        confirmPassword: [
          { required: true, message: '请输入确认密码', trigger: 'change' }
        ]
      }
    }
  }
}
</script>

<style scoped>
.container-reset-pws{
  width: 100%;
  min-height: 500px;
  background-color: #FFF;
}
>>>.el-form{
  width: 30%;
  padding: 50px 0;
  margin: 0 auto;
  margin-left: 350px;
}
</style>
